package com.bestcem.xm.wallet.dao.mapper;

import com.bestcem.xm.wallet.entity.mysql.LimitOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 限制充值订单表mapper
 *
 * @author wangyunyun <yunyun.wang@idiaoyan.com>
 * @version v1.0
 * @date 2022/5/13 10:23
 */
@Mapper
public interface LimitOrderMapper {

    /**
     * 创建限制充值订单
     *
     * @param limitOrder 限制充值订单
     * @return int
     * @author wangyunyun <yunyun.wang@idiaoyan.com>
     * @date 2022/5/13 10:23
     */
    int insertSelective(LimitOrder limitOrder);

    /**
     * 通过id更新限制充值订单
     *
     * @param param 更新参数
     * @param condition 更新条件
     * @return int
     * @author wangyunyun <yunyun.wang@idiaoyan.com>
     * @date 2022/5/13 10:27
     */
    int updateByCondition(@Param("param") LimitOrder param, @Param("condition") LimitOrder condition);

    /**
     * 根据条件查询限制充值订单
     *
     * @param limitOrder 限制充值订单
     * @return LimitOrder
     * @author wangyunyun <yunyun.wang@idiaoyan.com>
     * @date 2022/5/13 10:24
     */
    List<LimitOrder> selectBySelective(LimitOrder limitOrder);
}
